﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class Module
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class Module
   ">
    <meta name="generator" content="docfx 2.18.2.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="../toc.html">
    
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="TorchSharp.NN.Module">
  
  
  <h1 id="TorchSharp_NN_Module" data-uid="TorchSharp.NN.Module">Class Module
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">Module</span></div>
  </div>
      <div class="level2"><a class="xref" href="TorchSharp.NN.ProvidedModule.html">ProvidedModule</a></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="../TorchSharp.NN.html">TorchSharp.NN</a></h6>
  <h6><strong>Assembly</strong>: TorchSharp.dll</h6>
  <h5 id="TorchSharp_NN_Module_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class Module : IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  
  
  <a id="TorchSharp_NN_Module__ctor_" data-uid="TorchSharp.NN.Module.#ctor*"></a>
  <h4 id="TorchSharp_NN_Module__ctor_TorchSharp_NN_Parameter___" data-uid="TorchSharp.NN.Module.#ctor(TorchSharp.NN.Parameter[])">Module(Parameter[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected Module (TorchSharp.NN.Parameter[] parameters);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.Parameter.html">Parameter</a>[]</td>
        <td><span class="parametername">parameters</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  
  
  <a id="TorchSharp_NN_Module_Modules_" data-uid="TorchSharp.NN.Module.Modules*"></a>
  <h4 id="TorchSharp_NN_Module_Modules" data-uid="TorchSharp.NN.Module.Modules">Modules</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected System.Collections.Generic.List&lt;TorchSharp.NN.Module&gt; Modules { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="TorchSharp.NN.Module.html">Module</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="TorchSharp_NN_Module_AdaptiveAvgPool2D_" data-uid="TorchSharp.NN.Module.AdaptiveAvgPool2D*"></a>
  <h4 id="TorchSharp_NN_Module_AdaptiveAvgPool2D_System_Int64___" data-uid="TorchSharp.NN.Module.AdaptiveAvgPool2D(System.Int64[])">AdaptiveAvgPool2D(Int64[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.AdaptiveAvgPool2D AdaptiveAvgPool2D (long[] outputSize);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span>[]</td>
        <td><span class="parametername">outputSize</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.AdaptiveAvgPool2D.html">AdaptiveAvgPool2D</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_AdaptiveAvgPool2D_" data-uid="TorchSharp.NN.Module.AdaptiveAvgPool2D*"></a>
  <h4 id="TorchSharp_NN_Module_AdaptiveAvgPool2D_TorchSharp_Tensor_TorchTensor_System_Int64___" data-uid="TorchSharp.NN.Module.AdaptiveAvgPool2D(TorchSharp.Tensor.TorchTensor,System.Int64[])">AdaptiveAvgPool2D(TorchTensor, Int64[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.Tensor.TorchTensor AdaptiveAvgPool2D (TorchSharp.Tensor.TorchTensor x, long[] outputSize);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span>[]</td>
        <td><span class="parametername">outputSize</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Conv2D_" data-uid="TorchSharp.NN.Module.Conv2D*"></a>
  <h4 id="TorchSharp_NN_Module_Conv2D_System_Int64_System_Int64_System_Int64_System_Int64_System_Int64_" data-uid="TorchSharp.NN.Module.Conv2D(System.Int64,System.Int64,System.Int64,System.Int64,System.Int64)">Conv2D(Int64, Int64, Int64, Int64, Int64)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.Conv2D Conv2D (long inputChannel, long outputChannel, long kernelSize, long stride = 1, long padding = 0);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">inputChannel</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">outputChannel</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">kernelSize</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">stride</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">padding</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.Conv2D.html">Conv2D</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Dispose_" data-uid="TorchSharp.NN.Module.Dispose*"></a>
  <h4 id="TorchSharp_NN_Module_Dispose" data-uid="TorchSharp.NN.Module.Dispose">Dispose()</h4>
  <div class="markdown level1 summary"><p>Releases the storage.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Dispose ();</code></pre>
  </div>
  
  
  <a id="TorchSharp_NN_Module_Dispose_" data-uid="TorchSharp.NN.Module.Dispose*"></a>
  <h4 id="TorchSharp_NN_Module_Dispose_System_Boolean_" data-uid="TorchSharp.NN.Module.Dispose(System.Boolean)">Dispose(Boolean)</h4>
  <div class="markdown level1 summary"><p>Implements the .NET Dispose pattern.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected void Dispose (bool disposing);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">disposing</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Dropout_" data-uid="TorchSharp.NN.Module.Dropout*"></a>
  <h4 id="TorchSharp_NN_Module_Dropout_System_Boolean_System_Double_" data-uid="TorchSharp.NN.Module.Dropout(System.Boolean,System.Double)">Dropout(Boolean, Double)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.Dropout Dropout (bool isTraining, double probability = 0.5);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">isTraining</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">probability</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.Dropout.html">Dropout</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Dropout_" data-uid="TorchSharp.NN.Module.Dropout*"></a>
  <h4 id="TorchSharp_NN_Module_Dropout_TorchSharp_Tensor_TorchTensor_System_Boolean_System_Double_" data-uid="TorchSharp.NN.Module.Dropout(TorchSharp.Tensor.TorchTensor,System.Boolean,System.Double)">Dropout(TorchTensor, Boolean, Double)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.Tensor.TorchTensor Dropout (TorchSharp.Tensor.TorchTensor x, bool isTraining, double probability = 0.5);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">isTraining</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">probability</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Eval_" data-uid="TorchSharp.NN.Module.Eval*"></a>
  <h4 id="TorchSharp_NN_Module_Eval" data-uid="TorchSharp.NN.Module.Eval">Eval()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void Eval ();</code></pre>
  </div>
  
  
  <a id="TorchSharp_NN_Module_FeatureDropout_" data-uid="TorchSharp.NN.Module.FeatureDropout*"></a>
  <h4 id="TorchSharp_NN_Module_FeatureDropout_TorchSharp_Tensor_TorchTensor_" data-uid="TorchSharp.NN.Module.FeatureDropout(TorchSharp.Tensor.TorchTensor)">FeatureDropout(TorchTensor)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.Tensor.TorchTensor FeatureDropout (TorchSharp.Tensor.TorchTensor x);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Finalize_" data-uid="TorchSharp.NN.Module.Finalize*"></a>
  <h4 id="TorchSharp_NN_Module_Finalize" data-uid="TorchSharp.NN.Module.Finalize">Finalize()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">~Module ();</code></pre>
  </div>
  
  
  <a id="TorchSharp_NN_Module_Forward_" data-uid="TorchSharp.NN.Module.Forward*"></a>
  <h4 id="TorchSharp_NN_Module_Forward_TorchSharp_Tensor_TorchTensor_" data-uid="TorchSharp.NN.Module.Forward(TorchSharp.Tensor.TorchTensor)">Forward(TorchTensor)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract TorchSharp.Tensor.TorchTensor Forward (TorchSharp.Tensor.TorchTensor input);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td><span class="parametername">input</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_GetModules_" data-uid="TorchSharp.NN.Module.GetModules*"></a>
  <h4 id="TorchSharp_NN_Module_GetModules" data-uid="TorchSharp.NN.Module.GetModules">GetModules()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual System.Collections.Generic.IEnumerable&lt;string&gt; GetModules ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">System.String</span>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_GetName_" data-uid="TorchSharp.NN.Module.GetName*"></a>
  <h4 id="TorchSharp_NN_Module_GetName" data-uid="TorchSharp.NN.Module.GetName">GetName()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual string GetName ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_GetParameter_" data-uid="TorchSharp.NN.Module.GetParameter*"></a>
  <h4 id="TorchSharp_NN_Module_GetParameter_System_String_" data-uid="TorchSharp.NN.Module.GetParameter(System.String)">GetParameter(String)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public TorchSharp.Tensor.TorchTensor GetParameter (string name);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_HasParameter_" data-uid="TorchSharp.NN.Module.HasParameter*"></a>
  <h4 id="TorchSharp_NN_Module_HasParameter_System_String_" data-uid="TorchSharp.NN.Module.HasParameter(System.String)">HasParameter(String)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool HasParameter (string name);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_IsTraining_" data-uid="TorchSharp.NN.Module.IsTraining*"></a>
  <h4 id="TorchSharp_NN_Module_IsTraining" data-uid="TorchSharp.NN.Module.IsTraining">IsTraining()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsTraining ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Linear_" data-uid="TorchSharp.NN.Module.Linear*"></a>
  <h4 id="TorchSharp_NN_Module_Linear_System_Int64_System_Int64_System_Boolean_" data-uid="TorchSharp.NN.Module.Linear(System.Int64,System.Int64,System.Boolean)">Linear(Int64, Int64, Boolean)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.Linear Linear (long inputSize, long outputSize, bool hasBias = false);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">inputSize</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">outputSize</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">hasBias</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.Linear.html">Linear</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_LogSoftMax_" data-uid="TorchSharp.NN.Module.LogSoftMax*"></a>
  <h4 id="TorchSharp_NN_Module_LogSoftMax_System_Int64_" data-uid="TorchSharp.NN.Module.LogSoftMax(System.Int64)">LogSoftMax(Int64)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.LogSoftMax LogSoftMax (long dimension);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">dimension</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.LogSoftMax.html">LogSoftMax</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_LogSoftMax_" data-uid="TorchSharp.NN.Module.LogSoftMax*"></a>
  <h4 id="TorchSharp_NN_Module_LogSoftMax_TorchSharp_Tensor_TorchTensor_System_Int64_" data-uid="TorchSharp.NN.Module.LogSoftMax(TorchSharp.Tensor.TorchTensor,System.Int64)">LogSoftMax(TorchTensor, Int64)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.Tensor.TorchTensor LogSoftMax (TorchSharp.Tensor.TorchTensor x, long dimension);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span></td>
        <td><span class="parametername">dimension</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_MaxPool2D_" data-uid="TorchSharp.NN.Module.MaxPool2D*"></a>
  <h4 id="TorchSharp_NN_Module_MaxPool2D_System_Int64___System_Int64___" data-uid="TorchSharp.NN.Module.MaxPool2D(System.Int64[],System.Int64[])">MaxPool2D(Int64[], Int64[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.MaxPool2D MaxPool2D (long[] kernelSize, long[] stride = null);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int64</span>[]</td>
        <td><span class="parametername">kernelSize</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span>[]</td>
        <td><span class="parametername">stride</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.MaxPool2D.html">MaxPool2D</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_MaxPool2D_" data-uid="TorchSharp.NN.Module.MaxPool2D*"></a>
  <h4 id="TorchSharp_NN_Module_MaxPool2D_TorchSharp_Tensor_TorchTensor_System_Int64___System_Int64___" data-uid="TorchSharp.NN.Module.MaxPool2D(TorchSharp.Tensor.TorchTensor,System.Int64[],System.Int64[])">MaxPool2D(TorchTensor, Int64[], Int64[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.Tensor.TorchTensor MaxPool2D (TorchSharp.Tensor.TorchTensor x, long[] kernelSize, long[] stride = null);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span>[]</td>
        <td><span class="parametername">kernelSize</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Int64</span>[]</td>
        <td><span class="parametername">stride</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_NamedParameters_" data-uid="TorchSharp.NN.Module.NamedParameters*"></a>
  <h4 id="TorchSharp_NN_Module_NamedParameters" data-uid="TorchSharp.NN.Module.NamedParameters">NamedParameters()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual System.Collections.Generic.IEnumerable&lt;ValueTuple&lt;string,TorchSharp.Tensor.TorchTensor&gt;&gt; NamedParameters ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<span class="xref">System.ValueTuple</span>&lt;<span class="xref">System.String</span>,<a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a>&gt;&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Parameters_" data-uid="TorchSharp.NN.Module.Parameters*"></a>
  <h4 id="TorchSharp_NN_Module_Parameters" data-uid="TorchSharp.NN.Module.Parameters">Parameters()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual System.Collections.Generic.IEnumerable&lt;TorchSharp.Tensor.TorchTensor&gt; Parameters ();</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.IEnumerable</span>&lt;<a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_RegisterModule_" data-uid="TorchSharp.NN.Module.RegisterModule*"></a>
  <h4 id="TorchSharp_NN_Module_RegisterModule_TorchSharp_NN_Module_" data-uid="TorchSharp.NN.Module.RegisterModule(TorchSharp.NN.Module)">RegisterModule(Module)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void RegisterModule (TorchSharp.NN.Module module);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.Module.html">Module</a></td>
        <td><span class="parametername">module</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Relu_" data-uid="TorchSharp.NN.Module.Relu*"></a>
  <h4 id="TorchSharp_NN_Module_Relu_System_Boolean_" data-uid="TorchSharp.NN.Module.Relu(System.Boolean)">Relu(Boolean)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.ReLU Relu (bool inPlace = false);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">inPlace</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.ReLU.html">ReLU</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Relu_" data-uid="TorchSharp.NN.Module.Relu*"></a>
  <h4 id="TorchSharp_NN_Module_Relu_TorchSharp_Tensor_TorchTensor_System_Boolean_" data-uid="TorchSharp.NN.Module.Relu(TorchSharp.Tensor.TorchTensor,System.Boolean)">Relu(TorchTensor, Boolean)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.Tensor.TorchTensor Relu (TorchSharp.Tensor.TorchTensor x, bool inPlace = false);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td><span class="parametername">x</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">inPlace</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="../TorchSharp.Tensor/TorchSharp.Tensor.TorchTensor.html">TorchTensor</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Sequential_" data-uid="TorchSharp.NN.Module.Sequential*"></a>
  <h4 id="TorchSharp_NN_Module_Sequential_TorchSharp_NN_Module___" data-uid="TorchSharp.NN.Module.Sequential(TorchSharp.NN.Module[])">Sequential(Module[])</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static TorchSharp.NN.Sequential Sequential (TorchSharp.NN.Module[] modules);</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.Module.html">Module</a>[]</td>
        <td><span class="parametername">modules</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="TorchSharp.NN.Sequential.html">Sequential</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="TorchSharp_NN_Module_Train_" data-uid="TorchSharp.NN.Module.Train*"></a>
  <h4 id="TorchSharp_NN_Module_Train" data-uid="TorchSharp.NN.Module.Train">Train()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void Train ();</code></pre>
  </div>
  
  
  <a id="TorchSharp_NN_Module_ZeroGrad_" data-uid="TorchSharp.NN.Module.ZeroGrad*"></a>
  <h4 id="TorchSharp_NN_Module_ZeroGrad" data-uid="TorchSharp.NN.Module.ZeroGrad">ZeroGrad()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void ZeroGrad ();</code></pre>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Copyright © 2015-2017 Microsoft<br>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
